package com.wwlwxg.string;

import cn.hutool.crypto.SecureUtil;
import org.junit.Test;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;

public class StringTest {

	@Test
	public void testStringCode() throws UnsupportedEncodingException {
		String s = "智1";
		System.out.println(s.getBytes(StandardCharsets.UTF_8.name()).length);

	}

	public static void main(String[] args) {
		System.out.println(SecureUtil.md5("1223"));
	}
}
